package org.lee.whitelist.config;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * StarterService
 *
 * @author dralee
 * @date 2021-11-22 17:10:58
 **/
public class StarterService {

    private String userWhiteList;
    private List<String> whiteList;

    public StarterService(String userWhiteList) {
        this.userWhiteList = userWhiteList;
        whiteList = Arrays.stream(userWhiteList.split(",")).collect(Collectors.toList());
    }

    public List<String> getUserWhiteList() {
        return whiteList;
    }
}
